Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add options hash cop #2078

Merged
merged 1 commit into from
Jul 31, 2015
Merged

Add options hash cop #2078

merged 1 commit into from
Jul 31, 2015

Conversation

maxjacobson
Copy link
Contributor

Fix #2030
Is this what you had in mind? @yob @bbatsov

@yob
Copy link

yob commented Jul 28, 2015

I haven't run it against our codebase, but it looks like what I had in mind


module RuboCop
module Cop
module Lint
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be a Style cop.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah k. I wasn't sure where to put it. I don't know what these words mean

It warns against using option hashes if your ruby supports keyword
arguments.

It's disabled by default.

Fix #2030
@maxjacobson
Copy link
Contributor Author

@bbatsov updated!

bbatsov added a commit that referenced this pull request Jul 31, 2015
@bbatsov bbatsov merged commit 90dabd3 into rubocop:master Jul 31, 2015
@bbatsov
Copy link
Collaborator

bbatsov commented Jul 31, 2015

👍 Thanks!

@yob
Copy link

yob commented Jul 31, 2015

Thanks!

@maxjacobson
Copy link
Contributor Author

My pleasure!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants